@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  body {
    @apply bg-background text-text-dark;
    font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, 'Microsoft YaHei', Arial, sans-serif;
  }
}

@layer components {
  .card {
    @apply bg-white rounded-lg shadow-sm p-4 hover:shadow-card transition-shadow duration-300;
  }

  .btn-primary {
    @apply bg-primary text-white px-4 py-2 rounded transition-colors duration-300 hover:bg-primary-dark;
  }
  
  .stat-card {
    @apply flex flex-col p-4 bg-white rounded-lg shadow-sm;
  }
  
  .data-table {
    @apply w-full bg-white rounded shadow-sm overflow-hidden;
  }
  
  .sidebar-menu-item {
    @apply flex items-center p-3 text-text-light hover:bg-primary hover:bg-opacity-10 hover:text-primary rounded-md transition-colors duration-200;
  }
  
  .sidebar-menu-item.active {
    @apply bg-primary bg-opacity-10 text-primary;
  }
}